<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>Internal System</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<!-- body_text //-->

<table border="0" width="800" cellspacing="0" cellpadding="2" align="center">
<tr>

        <td colspan="2" height="30">&nbsp;</td>

      </tr>
  <tr>
  <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

      <tr>

        <td width="640" class="pageHeading">
         {$myStore.values|nl2br}
        </td>

        <td width="160" class="pageHeading" align="left"><!-- <img src="../images/logo_smarter.gif" border="0" alt="{$HOME_URL}" title=" {$HOME_URL} "> --></td>

      </tr>

    </table>
    </td>

  </tr>

  <tr>

    <td><table width="100%" border="0" cellspacing="0" cellpadding="2">

      <tr>

        <td colspan="2"><img src="../images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>

      </tr>

      <tr>

        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">

          <tr>

            <td class="main"><b>SOLD TO:</b></td>

          </tr>

          <tr>

            <td class="main">
            {$arrOrders.billing_name}<br> 
            {$arrOrders.billing_street}<br> 
            {$arrOrders.billing_city}, {$arrOrders.billing_state} {$arrOrders.billing_postcode}<br> 
            {$arrOrders.billing_country}
           </td>

          </tr>

          <tr>

            <td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>

          </tr>

          <tr>

            <td class="main"></td>

          </tr>

          <tr>

            <td class="main"><a href="mailto:{$arrOrders.customers_email}"><u>{$arrOrders.customers_email}</u></a></td>

          </tr>

        </table></td>

        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">

          <tr>

            <td class="main"><b>SHIP TO:</b></td>

          </tr>

          <tr>

            <td class="main">
            {$arrOrders.delivery_name} <br>
            {$arrOrders.delivery_street} <br>
            {$arrOrders.delivery_city}, {$arrOrders.delivery_state} {$arrOrders.delivery_postcode}<br> 
            {$arrOrders.delivery_country}
            
            </td>

          </tr>

        </table></td>

      </tr>

    </table></td>

  </tr>

  <tr>

    <td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>

  </tr>

<tr>

    <td><table border="0" cellspacing="0" cellpadding="2">

      <tr>

        <td class="main"><b>Order Number:</b></td>

        <td class="main">{$arrOrders.id}</td>

      </tr>

    </table></td>

  </tr>
  
  <tr>

    <td><table border="0" cellspacing="0" cellpadding="2">

      <tr>

        <td class="main"><b>Payment Method:</b></td>

        <td class="main">{$arrOrders.payment_method}</td>

      </tr>

    </table></td>

  </tr>

  <tr>

    <td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>

  </tr>

  <tr>

    <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">

              <tr>

                <td><!-- 
	                <table border="0" width="100%" cellspacing="0" cellpadding="2">
	
	                  <tr bgcolor="#E4E4E4" height="21">
	
	                    <td class="main" colspan="3"><b>Products</b></td>
	
	                  </tr>
					{foreach item=data from=$arrOrdersProducts}
				          <tr> 
				            <td class="main" align="right" valign="top" width="30"><b>{$data.quantity}</b>&nbsp;x</td> 
				            <td class="main" valign="top">{$data.name}<br><nobr><small>
					            {foreach item=attri from = $data.attributes}
						            
						            <i> - {$attri.attribute}: {$attri.attributeValue}
						            	
						            </i><br>
						            
						        {/foreach}
				            </small></nobr></td> 
				            <td class="main" align="right" valign="top">${$data.finalPrice / 100}</td>  
				          </tr>
					{/foreach}
				</table> -->


    
    <table border="0" width="100%" cellspacing="0" cellpadding="2">

  <tr bgcolor="#E4E4E4"> 
    <td width="65%">Products</td>
    <td width="5%">Model</td>
    <td width="5%">Tax</td>
    <td width="5%">Price</td>
    <td width="10%">Final Price</td>
    <td width="5%">Quantity</td>
    <td width="5%">Total</td>
  </tr>
  
  
  {foreach item=data from=$arrOrdersProducts}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td >&nbsp;<font style="font-size:24px">{$data.quantity}&nbsp;X&nbsp;</font>&nbsp;
    	<font style="font-size:12px">{$data.name}</font><br><nobr><small>
           {foreach item=attri from = $data.attributes}
            
            <i> - <font style="font-size:11px">{$attri.attribute}</font>: <font style="font-size:14px">{$attri.attributeValue}
            {if $attri.attributeValuePrice > 0}
            	(${$attri.price_prefix}{$attri.attributeValuePrice / 100})
            {/if}</font>
            </i><br>
            
        {/foreach}
          </small></nobr>
    
    </td>
    <td >&nbsp;{$data.model}</td>
    <td >&nbsp;{$data.tax / 100} %</td>
    <td>&nbsp;${$data.price / 100}</td>
    <td>&nbsp;${$data.finalPrice / 100}</td>
    <td>&nbsp;{$data.quantity}</td>
     <td>&nbsp;${$data.finalPrice * $data.quantity / 100}</td>
  </tr>
  {/foreach}
  <tr>

        <td align="right" colspan="8">
        &nbsp;
        </td>

      </tr>
      
  {foreach item=data from=$arrAccountList}
		<tr height="20">
	    	<td colspan="6" align="right"><b>{$data.comments}</b>:</td>
	    	<td align="left">&nbsp;${$data.amount / 100|string_format: "%.2f"}</td>
	  	</tr>
  	{/foreach}
      <tr>

        <td align="right" colspan="8">
        &nbsp;
        </td>

      </tr>
<tr>

        <td align="right" colspan="8">
        &nbsp;
        </td>

      </tr>
    </table>
<!-- 
 <table width="100%" cellspacing="1" cellpadding="4">
  <tr bgcolor="#E4E4E4"> 
    <td width="5%">Amount</td>
    <td width="10%">Amount Class</td>
    <td width="85%">Comments</td>
   </tr>
  
  {foreach item=data from=$arrAccountList}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td>&nbsp;${$data.amount / 100}</td>
    <td>&nbsp;{$data.classes}</td>
    <td>&nbsp;{$data.comments}</td>
  </tr>
  {/foreach}
</table> -->
    </td>

  </tr>

</table>
</td>
</tr>
</table>
<!-- body_text_eof //-->

<br>

</body>

</html>
